import request from '@/utils/request'

export function getGroupList(params) {
  return request({
    url: '/xxl-job-admin/jobgroup/pageList',
    method: 'post',
    data: params
  })
}

export function getGroupListAll() {
  return request({
      url: '/xxl-job-admin/jobgroup/listAll',
      method: 'get'
    }
  )
}

export function create(params) {
  return request({
    url: '/xxl-job-admin/jobgroup/add',
    method: 'post',
    data: params
  })
}

export function remove(id) {
  return request({
    url: '/xxl-job-admin/jobgroup/remove',
    method: 'get',
    params: {id: id}
  })
}

export function update(params) {
  return request({
    url: '/xxl-job-admin/jobgroup/update',
    method: 'post',
    data: params
  })
}

export function groupDetail(id){
  return request({
    url: '/xxl-job-admin/jobgroup/loadById',
    method: 'post',
    params: {'id':id}
  })
}
